// 0. 导入axios实例对象用于发送网络请求
import request from "@/utils/request"

// 1. 封装获取频道列表的函数
export const getChannels = () => request({
    url: '/v1_0/channels'
})

export const getMyChannels = () => {
    return request({
        // method: 'GET',
        url: '/v1_0/user/channels'
    })
}